package controller.formation
{
	import model.proxy.FormationProxy;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	 
	public class SupprimerFormationCommand extends SimpleCommand 
	{ 
		//public static const NAME : String = 'SUPPRIMER_FORMATION_COMMAND';
		 
		/** 
		 * Constructor 
		 */ 
		public function SupprimerFormationCommand() 
		{ 
			super(); 
		} 
		
		/** 
		 * Initialize all commands/controllers of the application 
		 */
		override public function execute(note : INotification) : void 
		{ 
			var listeFormations:Array = note.getBody() as Array;
			var formationProxy:FormationProxy = facade.retrieveProxy(FormationProxy.NAME) as FormationProxy; 
			formationProxy.supprimerFormation(listeFormations);
		} 
	}
}